import {BasicColumn} from '/@/components/Table';
import {FormSchema} from '/@/components/Table';
import { rules} from '/@/utils/helper/validator';
import { render } from '/@/utils/common/renderUtils';
//列表数据
export const columns: BasicColumn[] = [
  {
    title: '安装订单',
    align: "center",
    dataIndex: 'installOrderId_dictText'
  },
  {
    title: '安装步骤ID',
    align: "center",
    dataIndex: 'stepId_dictText'
  },
  {
    title: '步骤文件ID',
    align: "center",
    dataIndex: 'ossId',
    customRender: render.renderImage,
  },
  {
    title: '审核状态',
    align: "center",
    dataIndex: 'auditStatus_dictText'
  },
  {
    title: '审核人员',
    align: "center",
    dataIndex: 'auditBy_dictText'
  },
  {
    title: '审核意见',
    align: "center",
    dataIndex: 'auditReason'
  },
];

// 高级查询数据
export const superQuerySchema = {
  installOrderId: {title: '安装订单',order: 0,view: 'list', type: 'string',dictTable: "base_install_order", dictCode: 'id', dictText: 'id',},
  stepId: {title: '安装步骤ID',order: 1,view: 'sel_search', type: 'string',dictTable: "base_field_work_process", dictCode: 'id', dictText: 'step_name',},
  ossId: {title: '步骤文件ID',order: 2,view: 'image', type: 'string',},
  auditStatus: {title: '审核状态',order: 3,view: 'number', type: 'number',dictCode: 'dict_audit_status',},
  auditBy: {title: '审核人员',order: 4,view: 'sel_user', type: 'string',},
  auditReason: {title: '审核意见',order: 5,view: 'textarea', type: 'string',},
};
